﻿using System;
using UnityEngine;

[Serializable]
public class UIType
{
    public string Path;
    public string Name { get; private set; }
    public Transform Parent;
    public UIType(string path,Transform parent=null)
    {
        Path = path;
        Name = Path.Substring(path.LastIndexOf('/') + 1);
        Parent = parent;
    }
    public override string ToString()
    {
        return $"Path:{Path}\tName:{Name}";
    }

    public static readonly UIType RoomListPanelContentType = new UIType("Prefabs/UI/RoomListPanel");
    public static readonly UIType ChattingPanelContentType = new UIType("Prefabs/UI/ChattingPanel");
    public static readonly UIType GeneralPanelContentType = new UIType("Prefabs/UI/GeneralPanel");
    public static readonly UIType ConnectionClosedPanelContentType = new UIType("Prefabs/UI/ConnectionClosedPanel");
    public static readonly UIType DisbandRoomPanelContentType = new UIType("Prefabs/UI/DisbandRoomPanel");

}
